package com.finance.system.service;

import com.finance.system.bean.pojo.LogisticsColumnDef;
import com.finance.system.dao.LogisticsColumnMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by CBWL on 2017/4/27.
 */
@Service
public class LogisticsMappingService implements ILogisticsMappingService {
    @Autowired
    private LogisticsColumnMapper logisticsColumnMapper;

    @Override
    public void addMapping(LogisticsColumnDef logisticsColumnDefs) {
        this.logisticsColumnMapper.addMapping(logisticsColumnDefs);
    }

    @Override
    public void removeMapping(LogisticsColumnDef logisticsColumnDefs) {
        this.logisticsColumnMapper.removeMapping(logisticsColumnDefs);
    }

    @Override
    public void updateMapping(LogisticsColumnDef logisticsColumnDefs) {
        this.logisticsColumnMapper.updateMapping(logisticsColumnDefs);
    }

    @Override
    public List<LogisticsColumnDef> listAllMapping() {

        return this.logisticsColumnMapper.listAllMapping();
    }

    @Override
    public LogisticsColumnDef getById(String id) {
        return this.logisticsColumnMapper.getById(id);
    }

    @Override
    public LogisticsColumnDef getByClasz(String clasz) {
        return this.logisticsColumnMapper.getByClasz(clasz);
    }
}
